import axiosRequest from '@/utils/request';

export const getSuggestList = (type, cityId) => {
    return axiosRequest({
        url: `/commend/${type}/list${cityId ? `?cityId=${cityId}` : ''}`,
        method: 'GET',
    });
};

export const getSuggestDetail = (type, id) => {
    return axiosRequest({
        url: `/commend/${type}/details?id=${id}`,
        method: 'GET',
    });
};

export const getEventCalendar = (cityId) => {
    return axiosRequest({
        url: `/commend/event-calendar/list${cityId ? `?cityId=${cityId}` : ''}`,
        method: 'GET',
    });
};

export const getTodayRecommend = (cityId) => {
    return axiosRequest({
        url: `/commend/event/today-recommend${cityId ? `?cityId=${cityId}` : ''}`,
        method: 'GET',
    });
};
